package com.ln.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ln.dao.IBaseDAO;
import com.ln.dao.impl.NotesDAO;
import com.ln.pojo.impl.NotesPOJO;
import com.ln.service.BaseService;

@Service
@Transactional
public class NotesService extends BaseService<NotesPOJO, Integer> {
	@Autowired
	private NotesDAO notesDAO;

	@Override
	protected IBaseDAO<NotesPOJO, Integer> getDao() {
		return notesDAO;
	}
	
	public int selectId(int user_id) {
		return notesDAO.selectId(user_id);
	}

}
